//
//  AboutUsViewController.swift
//  TestAPIManager
//
//  Created by yq on 2020/10/15.
//  Copyright © 2020 杨庆. All rights reserved.
//

import UIKit

class AboutUsViewController: UIViewController {
    
    @IBOutlet weak var contentView: UIView!
     @IBOutlet weak var headerView: UIView!
     @IBOutlet private var contactLabel: UILabel!
     @IBOutlet private var faxLabel: UILabel!
     @IBOutlet private var emailLabel: UILabel!
//     @IBOutlet private var addressLabel: UILabel!
     @IBOutlet private var addressImageView: UIImageView!
    

    override var preferredStatusBarStyle: UIStatusBarStyle {
        return .lightContent
    }

    override func viewDidLayoutSubviews() {
        super.viewDidLayoutSubviews()
        
        let path:UIBezierPath = UIBezierPath(roundedRect: contentView.bounds, byRoundingCorners: [.topLeft,.topRight], cornerRadii: CGSize(width: 10, height: 10))
        let layer:CAShapeLayer = CAShapeLayer()
        layer.path = path.cgPath
        contentView.layer.mask = layer
    }
    
    
    override func viewDidLoad(){
        super.viewDidLoad()

        /* 设置导航栏 */
        let setupNavBar = {
            self.navigationItem.title = "关于我们"
            self.navigationController?.navigationBar.tintColor = .black
            self.navigationController?
            .navigationBar
            .setBackgroundImage(UIImage(), for: .default)
            self.navigationController?
            .navigationBar
            .subviews[0]
            .subviews[0]
            .isHidden = true
        }
        
        setupNavBar()
    }
    
    
}




